/* General Styles */
body {
    margin: 0;
    font-family: 'Arial, sans-serif';
    color: #333;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Logo Styles */
  .logo {
    font-size: 2em;
    font-weight: bold;
    color: #004aad; /* Primary logo color */
  }
  
  /* Navbar Styles */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #333; /* Navbar background */
    border: 2px solid white;
    padding: 10px;
    border-radius: 10px;
  }
  
  .navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px; 
    transition: background-color 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: #333;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  }
  
  .navbar a:hover {
    background-color: #004aad; 
    border: 2px solid #004aad; 
  }
  
  /* Dropdown Styles */
  .dropdown {
    position: relative;
    display: inline-block; 
  }
  
  .dropdown span {
    color: white;
    cursor: pointer;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    border-radius: 5px;
    top: 100%;
    left: 0;
    z-index: 1;
  }
  
  .dropdown-content a {
    color: #333;
    padding: 10px;
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: white;
  }
  
  .dropdown-content a:hover {
    background-color: #004aad !important;
    border: 2px solid white !important;
    color: white !important;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Ensure Buttons Stay Aligned */
  .navbar .dropdown {
    margin: 0;
    vertical-align: middle;
  }
  
  /* Mobile Menu Styles */
  .mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #333; /* Mobile menu background matches navbar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    max-height: 80vh; /* Restrict menu height to 80% of the viewport */
    overflow-y: auto; /* Allow scrolling if menu exceeds the height */
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  .mobile-menu a,
  .mobile-menu .dropdown {
    padding: 10px 20px;
    text-decoration: none;
    color: white; /* White text for mobile menu links */
    font-size: 1rem;
    border-bottom: 1px solid #444; /* Darker separator */
  }
  
  .mobile-menu a:hover {
    background-color: #004aad; /* Match navbar hover color */
    color: white; /* Ensure text remains white on hover */
  }
  
  .mobile-menu .close-menu {
    align-self: flex-end;
    margin: 10px 20px 0;
    cursor: pointer;
    font-size: 1.5rem;
    color: white; /* White close icon */
  }
  
  /* Hamburger Menu */
  .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .menu-toggle i {
    font-size: 1.5rem;
    color: #333;
  }
  
  /* Header Styles */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
  }
  
  /* Mobile Menu Dropdown Styles */
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
  }
  
  .dropdown-menu li {
    padding: 10px 15px;
    white-space: nowrap;
  }
  
  .dropdown-menu li a {
    color: #333;
    font-size: 0.9rem;
  }
  
  .dropdown-menu li a:hover {
    color: #cc0000;
    background-color: #f9f9f9;
    border-radius: 5px;
  }
  
  .arrow {
    font-size: 0.8rem;
    margin-left: 5px;
  }
  
  /* Responsive Design for Small Screens */
  @media (max-width: 768px) {
    .navbar {
      display: none; 
    }
  
    .menu-toggle {
      display: flex; /* Show hamburger menu */
    }
  
    .navbar-links {
      flex-direction: column;
      gap: 10px;
    }
  
    .dropdown-menu {
      position: static;
      box-shadow: none;
    }
  
    /* Mobile Menu Improvement */
    .mobile-menu a,
    .mobile-menu .dropdown {
      padding: 15px; /* Increase padding for better touch interaction */
    }
  
    .mobile-menu a:hover {
      background-color: #004aad; /* Match navbar hover color */
    }
  
    .dropdown-content {
      position: static;
      display: block;
      width: 100%;
      background-color: #333; /* Match mobile menu color */
      box-shadow: none;
      padding-left: 20px;
    }
  
    .mobile-menu .dropdown-content a {
      padding: 12px;
      color: white; /* White text for dropdown items */
      background-color: #333; /* Background matches mobile menu */
    }
  }




  
  /* Image Container with Overlay */
.image-container {
    position: relative;
    text-align: center;
    color: white;
    margin-top: 90px; /* Add gap from the top */
  }
  
  .image-container img {
    height: 100vh; /* Full viewport height for a more impactful look */
    width: 100%; /* Full width to cover the container */
    object-fit: cover; /* Ensures the image covers the area without stretching */
  }
  
  .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the text */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 70%; /* Wider overlay for larger text */
    box-sizing: border-box;
  }
  
  .text-overlay h1 {
    font-size: 2.5rem; /* Heading size for better readability */
    margin: 0 0 10px;
  }
  
  .text-overlay p {
    font-size: 1.5rem; /* Larger font for better readability */
    line-height: 1.6; /* Enhanced line spacing for clarity */
    margin-bottom: 20px;
  }
  
  /* **Responsive Design for Small Screens (max-width: 480px)** */
  
  /* For small screens (max-width: 480px) */
  @media (max-width: 480px) {
    /* Image adjustments */
    .image-container img {
      height: 50vh; /* Reduce height for small screens */
    }
  
    /* Text Overlay */
    .text-overlay {
      width: 90%; /* Make the overlay take up more width on small screens */
      padding: 15px; /* Reduce padding for smaller screens */
    }
  
    .text-overlay h1 {
      font-size: 1.8rem; /* Reduce heading size */
      margin-bottom: 10px;
    }
  
    .text-overlay p {
      font-size: 1.2rem; /* Slightly smaller font size for better readability on small screens */
      line-height: 1.5; /* Adjust line height for smaller screens */
      margin-bottom: 15px; /* Reduced bottom margin for better spacing */
    }
  }
  
  /* **For Tablets and Larger Screens (480px - 1024px)** */
  @media (min-width: 481px) and (max-width: 1024px) {
    /* Image adjustments */
    .image-container img {
      height: 70vh; /* Slightly reduce the image height */
    }
  
    /* Text Overlay */
    .text-overlay {
      width: 80%; /* Adjust width for tablets */
      padding: 20px;
    }
  
    .text-overlay h1 {
      font-size: 2rem; /* Slightly reduce font size on tablets */
      margin-bottom: 15px;
    }
  
    .text-overlay p {
      font-size: 1.4rem; /* Slightly reduce font size on tablets */
      line-height: 1.6;
      margin-bottom: 20px; /* Adjust bottom margin for better spacing */
    }
  }
  
  /* **For Large Screens (1025px and above)** */
  @media (min-width: 1025px) {
    /* Image adjustments */
    .image-container img {
      height: 100vh; /* Full height for larger screens */
    }
  
    /* Text Overlay */
    .text-overlay {
      width: 70%; /* Keep the width as 70% for large screens */
      padding: 20px;
    }
  
    .text-overlay h1 {
      font-size: 2.5rem; /* Larger heading for large screens */
      margin-bottom: 20px;
    }
  
    .text-overlay p {
      font-size: 1.5rem; /* Default paragraph size for large screens */
      line-height: 1.6;
      margin-bottom: 20px;
    }
  }

  



  /* Trusted Source Section */
.trusted-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 30px; /* Increased padding for larger section size */
    background-color: #fff;
  }
  
  .trusted-content {
    flex: 1;
    max-width: 55%; /* Slightly increased the width for the content area */
    padding-right: 30px;
  }
  
  .trusted-content h5 {
    font-size: 1.3rem; /* Slightly enlarged */
    color: #004aad;
    margin-bottom: 15px;
  }
  
  .trusted-content h2 {
    font-size: 2.1rem; /* Enlarged for more emphasis */
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
  }
  
  .trusted-content p {
    font-size: 1.1rem; /* Enlarged for better readability */
    color: #555;
    line-height: 1.8;
  }
  
  .trusted-image {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
  }
  
  .trusted-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly deeper shadow */
  }
  
  /* Responsive Design */
  
  /* Small Screens: Mobile Portrait */
  @media (max-width: 768px) {
    .trusted-source {
      flex-direction: column; /* Stack elements vertically */
      padding: 50px 20px; /* Adjusted padding for smaller screens */
    }
  
    .trusted-content {
      max-width: 100%; /* Full width for the content on small screens */
      padding-right: 0;
      text-align: center; /* Center content for smaller screens */
    }
  
    /* Reduce the size of h2 heading for small screens */
    .trusted-content h2 {
      font-size: 1.7rem; /* Slightly smaller for better mobile readability */
    }
  
    .trusted-content p {
      font-size: 1rem; /* Adjusted for smaller screens */
    }
  
    .trusted-image {
      margin-top: 30px; /* Add space between content and image */
      max-width: 100%; /* Full width for the image */
      justify-content: center; /* Center the image */
    }
  
    .trusted-image img {
      width: 100%; /* Ensure image takes up full width */
      height: auto;
      border-radius: 10px;
    }
  }
  
  /* Extra Small Screens: Mobile Portrait (Less than 480px) */
  @media (max-width: 480px) {
    .trusted-source {
      padding: 40px 15px; /* Reduce padding for very small screens */
    }
  
    .trusted-content h2 {
      font-size: 1.5rem; /* Further reduce heading size */
    }
  
    .trusted-content p {
      font-size: 0.95rem; /* Reduce font size for paragraphs */
    }
  
    .trusted-image {
      margin-top: 20px; /* Less margin for image */
    }
  }

  
   /* What We Offer Section */
.offer-section {
  text-align: center;
  padding: 60px 5%;
}

.offer-section h2 {
  font-size: 1.5rem;
  color: #004aad;
  margin-bottom: 10px;
}

.offer-section h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out;
}

.offer-section p {
  font-size: 1.2rem;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* **Responsive Design for Small Screens (max-width: 768px)** */

/* For tablets and smaller screens */
@media (max-width: 768px) {
  .offer-section {
    padding: 40px 5%; /* Adjust padding for smaller screens */
  }

  .offer-section h2 {
    font-size: 1.2rem; /* Slightly smaller h2 font size */
    margin-bottom: 8px; /* Reduced margin for better spacing */
  }

  .offer-section h3 {
    font-size: 1.6rem; /* Slightly smaller heading font size */
    margin-bottom: 15px; /* Reduced margin for better spacing */
  }

  .offer-section p {
    font-size: 1rem; /* Slightly smaller paragraph text */
    line-height: 1.5; /* Adjust line height for smaller text */
    margin-bottom: 20px; /* Adjust spacing below paragraphs */
  }
}

/* **For Mobile Screens (max-width: 480px)** */
@media (max-width: 480px) {
  .offer-section {
    padding: 30px 5%; /* Reduce padding for mobile screens */
  }

  .offer-section h2 {
    font-size: 1rem; /* Further reduce h2 font size */
    margin-bottom: 5px; /* Adjust margin for better spacing */
  }

  .offer-section h3 {
    font-size: 1.4rem; /* Further reduce heading font size */
    margin-bottom: 10px; /* Adjust margin for better spacing */
  }

  .offer-section p {
    font-size: 0.9rem; /* Further reduce paragraph text size */
    line-height: 1.4; /* Adjust line height for readability */
    margin-bottom: 15px; /* Adjust margin for better spacing */
  }
}


/* Features Section */
.features {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  padding: 50px 20px;
  background-color: #f5f5f5;
}

.feature {
  flex: 1;
  max-width: 300px;
  text-align: center;
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Start with a slight downward shift */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Add a delay for each feature when it becomes visible */
.feature.visible {
  opacity: 1;
  transform: translateY(0); /* Move to original position */
}

.feature:nth-child(1).visible {
  transition-delay: 0.2s; /* First element with a small delay */
}

.feature:nth-child(2).visible {
  transition-delay: 0.5s; /* Second element with a larger delay */
}

.feature:nth-child(3).visible {
  transition-delay: 0.8s; /* Third element with a larger delay */
}

/* Hover Effect for Features */
.feature:hover {
  transform: translateY(-10px);
}

/* Icon Style */
.icon-container {
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white background */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  margin: 0 auto 15px; /* Center container itself and add spacing below */
}

.feature i {
  font-size: 40px;
  color: #004aad; /* Icon color matching the theme */
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: black;
  font-weight: 600;
}

.feature p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0 auto;
  padding: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features {
    flex-direction: column; /* Stack features vertically */
    align-items: center; /* Center align items */
    padding: 30px 20px; /* Adjust padding for mobile view */
  }

  .feature {
    max-width: 90%; /* Allow features to take more space on smaller screens */
    margin-bottom: 20px; /* Add margin between features */
  }

  .feature h3 {
    font-size: 1.2rem; /* Adjust font size for mobile */
  }

  .feature p {
    font-size: 0.9rem; /* Adjust font size for mobile */
  }

  /* Adjust Icon Container */
  .icon-container {
    width: 50px; /* Slightly reduce icon container size */
    height: 50px; /* Slightly reduce icon container size */
  }

  .feature i {
    font-size: 35px; /* Adjust icon size */
  }
}

/* For very small screens (e.g., portrait mobile) */
@media (max-width: 480px) {
  .feature h3 {
    font-size: 1.1rem; /* Adjust font size for very small screens */
  }

  .feature p {
    font-size: 0.85rem; /* Adjust font size for very small screens */
  }

  .icon-container {
    width: 40px; /* Further reduce icon size */
    height: 40px; /* Further reduce icon size */
  }

  .feature i {
    font-size: 30px; /* Further adjust icon size */
  }
}

/* General Animation Style for Elements */
.feature, .benefit-card, .disaster-card, .card {
  opacity: 0;
  transform: translateY(50px); /* Start position */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Make sure the elements are visible when they come into the viewport */
.feature.visible, .benefit-card.visible, .disaster-card.visible, .card.visible {
  opacity: 1;
  transform: translateY(0); /* Final position */
}




/* Footer */
.footer {
  background-color: #000;
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  color: #cc0000;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #cc0000;
}

.app-links img {
  width: 120px;
  margin-right: 10px;
  transition: transform 0.2s ease-in-out;
}

.app-links img:hover {
  transform: scale(1.1);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #cc0000;
}

.footer-column p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 10px 0;
}

.footer-column p i {
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 0.9rem;
  margin: 5px 0;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #cc0000;
}

/* Footer Styling (Second File) */
.footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  text-align: left;
  flex: 1;
  margin-left: 20px;
}

.footer-social {
  margin-top: 20px;
}

.footer-logo h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #004aad;
}

.footer-logo p {
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-social a {
  margin: 0 10px;
  color: white;
  font-size: 1.5em;
}

.footer-social a:hover {
  color: #004aad;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 3;
}

.footer-column {
  width: 25%;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #004aad;
}

.footer-column ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.footer-column li a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-column li a:hover {
  color: whitesmoke !important;
}

.footer-column li::before {
  content: "→";
  margin-right: 10px;
  font-size: 1.5em;
  color: white;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  width: 100%;
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 1em;
  margin: 10px 0;
}

/* Responsive Design for Footer */
@media (max-width: 1200px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    text-align: center;
    margin: 10px 0;
  }

  .footer-social {
    text-align: center;
    margin-top: 10px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .footer-column {
    width: 50%;
    text-align: center;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo h2 {
    font-size: 1.6rem;
  }

  .footer-logo p {
    font-size: 1rem;
  }

  .footer-social a {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-column {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .footer-column h3 {
    font-size: 1.3rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-logo h2 {
    font-size: 1.4rem;
  }

  .footer-logo p {
    font-size: 0.9rem;
  }

  .footer-social a {
    font-size: 1.2rem;
  }

  .footer-column h3 {
    font-size: 1.2rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }
}
